package Work0513;

public class Procedure {
	private String name;

	public Procedure(String name) {
		this.name = name;
	}

	public void getLength(Diagram a) {
		System.out.println(name + "开始绘制,并计算周长:");
		a.getLength();
	}

	public void getArea(Diagram a) {
		System.out.println(name + "开始绘制,并计算面积:");
		a.getArea();
	}

}
